package com.hui.security.sys.mapper;

import com.hui.security.sys.entity.Role;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface RoleMapper {
    int deleteByPrimaryKey(String roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(String roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    int batchInsert(@Param("recordList") List<Role> recordList);

    int batchDelete(@Param("ids") String[] ids);

    int batchUpdate(@Param("recordList") List<Role> recordList);

    int deleteRefByUserId(@Param("userId") String userId);

    List<Role> selectByUserId(@Param("userId") String userId);

    Role selectByRoleName(@Param("roleName") String roleName);
}